package cn.com.code.hwjs;

import java.lang.reflect.Array;
import java.util.*;

/**
 * https://www.nowcoder.com/practice/2de4127fda5e46858aa85d254af43941?tpId=37&tqId=21257&rp=1&ru=/exam/oj&qru=/exam/oj&sourceUrl=%2Fexam%2Foj%3Fpage%3D1%26pageSize%3D50%26search%3D%26tab%3D%25E5%2590%258D%25E4%25BC%2581%25E7%25AC%2594%25E8%25AF%2595%25E7%259C%259F%25E9%25A2%2598%26topicId%3D37&difficulty=undefined&judgeStatus=undefined&tags=&title=
 *
 * @author zhengpei
 * @date 2022/5/12
 */
public class Hwjs34 {

  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    while (sc.hasNext()) {
      String str = sc.nextLine();
      process(str);
    }
  }

  private static String process(String str) {
    char[] chars = str.toCharArray();
    Arrays.sort(chars);
//    for (char c : chars) {
//      System.out.print(c);
//    }
    for(int i = chars.length-1;i>=0;i--){
            System.out.print(chars[i]);
    }
    System.out.println();

    return null;
  }

}
